import request from '@/utils/request'
// 商品类型 商品搜索
export const GoodsSearch = data => request.get('/api/vm-service/skuClass/search', { params: data })
// 新增商品类型
export const addGoodsClass = data => request.post('/api/vm-service/skuClass', data)
// 删除商品类型
export const delGoodsClass = data => request.delete(`/api/vm-service/skuClass/${data.classId}`)
// 修改商品类型
export const putGoodsClass = data => request.put(`/api/vm-service/skuClass/${data.classId}`, data)

// 商品搜索
export const goodsearch = data => request.get('/api/vm-service/sku/search', { params: data })
// 新增商品
export const addGoods = data => request.post('/api/vm-service/sku', data)
// 修改商品
export const putGoods = data => request.put(`/api/vm-service/sku/${data.skuId}`, data)
